package com.app.scale.bean;


import java.io.Serializable;
import java.util.ArrayList;

public class ProviceListData implements Serializable {

    /**
     * id : 110100
     * title : 北京市
     * parentId : 110000
     * type : null
     * number : 0
     * deptName : null
     * fullPath : null
     * value : 110100
     * key : 110100
     * children : []
     * leaf : 0
     * layer : false
     * bizData : null
     */

    private String id;
    private String title;
    private String parentId;
    private String type;
    private int number;
    private String deptName;
    private String fullPath;
    private String value;
    private String key;
    private String leaf;
    private boolean layer;
    private String bizData;
    private ArrayList<ProviceListData> children = new ArrayList<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getFullPath() {
        return fullPath;
    }

    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getLeaf() {
        return leaf;
    }

    public void setLeaf(String leaf) {
        this.leaf = leaf;
    }

    public boolean isLayer() {
        return layer;
    }

    public void setLayer(boolean layer) {
        this.layer = layer;
    }

    public String getBizData() {
        return bizData;
    }

    public void setBizData(String bizData) {
        this.bizData = bizData;
    }

    public ArrayList<ProviceListData> getChildren() {
        return children;
    }

    public void setChildren(ArrayList<ProviceListData> children) {
        this.children = children;
    }

    public ArrayList<String> getListStr(){
        ArrayList<String> listStr = new ArrayList<>();
        for (ProviceListData data:children){
            listStr.add(data.getTitle());
        }
        return listStr;
    }
}
